Skip to content

Add PUTER GPT-5.4 Nano model, ensure selected model is used in requests, reorder model menu and clean up offline prompt logic#84

Merged
Android-PowerUser merged 5 commits intomainfrom
fix-screenshot-message-duplication-2qemmx
Apr 21, 2026
Merged

Add PUTER GPT-5.4 Nano model, ensure selected model is used in requests, reorder model menu and clean up offline prompt logic#84
Android-PowerUser merged 5 commits intomainfrom
fix-screenshot-message-duplication-2qemmx

Conversation

@Android-PowerUser
Copy link
Copy Markdown
Owner

Motivation

  • Expose a new Puter GPT-5.4 Nano model in the app and surface it at the top of the model selection UI.
  • Ensure the actual selected model name is propagated into various service/request paths (Cerebras streaming and the background service intent) so requests use the current model.
  • Simplify and harden offline/shot-prompt handling and ensure build types and samples variant debuggable flags are explicit.

Description

  • Added a new ModelOption entry PUTER_GPT_5_4_NANO with display name and provider set to PUTER and enabled screenshot support.
  • Reordered the model dropdown to put PUTER_GPT_5_4_NANO before MISTRAL_MEDIUM_3_1 and excluded it from the normalModels filter so it appears in the ordered list.
  • Updated the helper hint for PUTER_GLM5 to reference "GPT-5.4 Nano" punctuation.
  • Changed Cerebras streaming request body construction to use the currently selected model name via GenerativeAiViewModelFactory.getCurrentModel().modelName instead of a fixed modelName variable.
  • Updated the creation of the ScreenCaptureService intent to pass modelName = currentModel.modelName so the background service receives the selected model.
  • Removed latestUserTaskInput usage and simplified createGenericScreenshotPrompt() to return an empty string (cleaning up stale task-input tracking).
  • Made debug and release build types explicitly set isDebuggable, and ensured the samples build type is initialized from debug but explicitly marked non-debuggable.

Testing

  • Ran a Gradle build locally with ./gradlew build and unit tests with ./gradlew test, and both completed successfully.

Codex Task

Copy link
Copy Markdown
Contributor

@amazon-q-developer amazon-q-developer Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes correctly implement the stated functionality: adding the PUTER GPT-5.4 Nano model, ensuring the selected model is used in API requests, reordering the model menu, and cleaning up offline prompt logic. The build configuration explicitly sets debuggable flags as intended. No defects found that would block merging.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@Android-PowerUser Android-PowerUser merged commit c1b3196 into main Apr 21, 2026
7 checks passed
@Android-PowerUser Android-PowerUser deleted the fix-screenshot-message-duplication-2qemmx branch April 25, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant